﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>兼职乐-快乐生活，快乐工作，尽在兼职乐</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=9">
    <!-- 引入 Bootstrap -->
    <link href="__MYINDEXCSS__bootstrap.min.css" rel="stylesheet">
    <link href="__MYINDEXCSS__newpc.css" rel="stylesheet">
    <link href="__MYINDEXCSS__datepicker.css" rel="stylesheet">
    <!-- HTML5 Shim 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
    <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
    <!--[if lt IE 9]>
    <script src="__MYINDEXJS__html5shiv.js"></script>
    <script src="__MYINDEXJS__respond.min.js"></script>
    <![endif]-->
    <script src="__MYINDEXJS__jquery.js"></script>
    <script src="__MYINDEXJS__lepin_ajax.js"></script>
    <script src="__MYINDEXJS__lepin.js"></script>
    <script src="__MYINDEXJS__zepto.min.js"></script>
    <script src="__MYINDEXJS__frozen.js"></script>
    <script type="text/javascript" src="__MYINDEXJS__laydate.js"></script>
    <script src="__MYINDEXJS__common2.js"></script>
</head>
<body>
<div class="nav_top">
    <div class="container">
        <a class="pull-right" href="index.php?act=about">关于我们</a>
        <span class="pull-right mr15">欢迎,{$Think.session.tel}<a href="login.php?act=login_out" class="ml10">[注销]</a></span>
        <a href="index.php?act=app"><span class="glyphicon glyphicon-phone mr5"></span>兼职乐APP</a>
        <span class="ml10"><em class="fontC01 fontS16">[未认证]</em></span>
    </div>
</div>

<div class="navbar nav01"  >
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">兼职乐</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <span class="navbar-brand clearfix">
                <a href="index.php"><img class="pull-left" src="__MYINDEXPIC__logo.jpg"></a>
            </span>
        </div>
        <div class="navbar-collapse collapse" role="navigation">
            <a href='{:url("index/part/addPart")}' class="btn btn-danger pull-right mt10 hidden-xs" style="color:#fff">发布新职位</a>

            <ul class="nav navbar-nav mt10 ml10">
                <li ><a href="{:url('index/part/index')}">公司主页</a></li>
                <li ><a href="{:url('index/part/position')}">职位管理</a></li>
                <li ><a href="{:url('index/resume/index')}">简历库</a></li>
                <li ><a href="{:url('index/company/center')}">个人中心</a></li>
            </ul>
        </div>
    </div>
</div>


<div class="container">
    <div class="box01">
        <div class="search_box">
            <form class="form-inline">
                <input type="hidden" name="act" value="jobs_manage">
                <div class="form-group">
                    <label for="">职位名称：</label>
                    <input type="text" class="form-control" style="width:260px;" name="position_name" value="" id="jobs">
                </div>
                <div class="form-group">
                    <label for="">工作时间：</label>
                    <input type="text" class="form-control" value="" id="dpd1" name="start">
                    <span>至</span>
                    <input type="text" class="form-control" value="" id="dpd2" name="end">
                </div>
                <!--<input type="hidden" name="status" value="0">-->
                <!--<input type="hidden" value="1" name="page_num" id="page_num" />-->
                <div class="form-group">
                    <!--<button type="button" class="btn btn-success" id="sou">搜索</button>-->
                    <button type="button" class="btn btn-info" id="sou">搜索</button>
                </div>

            </form>
        </div>
        <div class="tabbable resume mt20">
            <ul class="nav nav-tabs pull-left mt5" >
                <li class="borig"><a class="borig" href="{:url('index/part/position',['tel'=>$Think.session.tel])}">所有职位</a></li>
                <li class="borig"><a href='{:url("index/part/showStatus",["status"=>"2","tel"=>$Think.session.tel])}'>进行中职位</a></li>
                <li class="borig"><a href='{:url("index/part/showStatus",["status"=>"3","tel"=>$Think.session.tel])}'>已结束职位</a></li>
                <li class="active borig"><a >待审核职位</a></li>
            </ul>
            <a class="btn btn-danger" href='{:url("index/part/addPart")}'>发布职位</a>
            <span>（已发布个数：{$count} 个）</span>
        </div>
        <div class="tab-content mt10">
            <div class="tabox tab-pane active" id="panel01">
                <table class="table table-bordered text-center table-striped">
                    <thead>
                    <tr bgcolor="#5dcdbf">
                        <th>序号</th>
                        <th>职位名称</th>
                        <th>发布日期</th>
                        <th>工作时间</th>
                        <th>已报名人数</th>
                        <th>已录取人数</th>
                        <th>操作</th>
                    </tr>


                    </thead>

                    <tbody>
                    {volist name='list'  id='v'}

                    <tr>
                        <td>{$v.position_id}</td>
                        <td>{$v.position_name}</td>
                        <td>{$v.position_publish|date='Y-m-d H:i:s',###}</td>
                        <td>{$v.position_start|date='Y-m-d H:i:s',###}-{$v.position_end|date='Y-m-d H:i:s',###}</td>
                        <td>{$v.position_apply}</td>
                        <td>{$v.position_enroll}</td>
                        <td>
                            <a  class="btn btn-info btn-xs" href='{:url("index/part/positionEdit",["id"=>$v.position_id])}'>编辑</a>
                            <a  class="btn btn-primary btn-xs" href='{:url("index/part/roleMessage",["id"=>$v.position_id])}' >详情</a>
                            <a  class="btn btn-danger btn-xs" href='{:url("index/part/delPart",["id"=>$v.position_id])}'>删除</a>

                        </td>
                    </tr>

                    {/volist}
                    <script type="text/javascript">
                        function setid(jid){
                            $("#jobid").val(jid);
                        }
                    </script>
                    </tbody>

                </table>
                <div STYLE="text-align: center">
                    {$list->render()}
                </div>

            </div>
            <input type="hidden" id="jobid" value="">
            <input type="hidden" id="jobs_name" value="">


            <!--<div class="text-center">-->
            <!--<ul class="pagination">-->
            <!--<li><a disabled>上一页</a></li>-->
            <!--<li class="active"><a >1</a></li>-->
            <!--<li><a disabled>下一页</a></li>-->
            <!---->
            <!--</ul>-->
            <!--</div>-->
        </div>
    </div>
</div>



<div class="foot mt20">
    <div class="container"><p class="text-center">©2015 河北乐聘人力资源服务有限公司 丨 快速到岗、高效匹配的兼职平台 丨 冀ICP备15013734</p></div>
</div>
<div class="telbox"></div>
<script src="__MYINDEXJS__jquery.js"></script>
<script src="__MYINDEXJS__bootstrap.min.js"></script>
<script type="text/javascript" language="javascript" src="__MYINDEXJS__jquery-1.7.2-min.js"></script>
<script src="__MYINDEXJS__common2.js"></script>
<script src="__MYINDEXJS__datepicker.js"></script>
<script src="__MYINDEXJS__foundation-datepicker.zh-cn.js"></script>
<script type="text/javascript" language="javascript" src="__MYINDEXJS__jqbar.js"></script>
<script>
    var nowTemp = new Date();
    var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
    var checkin = $('#dpd1').fdatepicker({
        onRender: function (date) {
//        return date.valueOf() > now.valueOf() ? 'disabled' : '';
        }
    }).on('changeDate', function (ev) {
        if (ev.date.valueOf() > checkout.date.valueOf()) {
            var newDate = new Date(ev.date)
            newDate.setDate(newDate.getDate() + 1);
            checkout.update(newDate);
        }
        checkin.hide();
        $('#dpd2')[0].focus();
    }).data('datepicker');
    var checkout = $('#dpd2').fdatepicker({
        onRender: function (date) {
            return date.valueOf() < checkin.date.valueOf() ? 'disabled' : '';
        }
    }).on('changeDate', function (ev) {
        checkout.hide();
    }).data('datepicker');




    //获取页面上传输的搜索功能的数据
    $(function () {
        $('#sou').click(function () {
            var position_name = $('#jobs').val();
            var work1 = $('#dpd1').val();
            var work2 = $('#dpd2').val();
            // console.log(name,work1,work2);
            // var info =  $('#manage_form input').serialize();

            $.ajax({
                type:'get',
                url:"{:url('index/company/search')}",
                data:{'position_name':position_name,'position_work1':work1,'position_work2':work2},
                dataType:"json",
                success:function (data) {
                    console.log(data);
                    // window.location.href="{:url('index/login/index')}";
                },
                error:function () {
                    console.log('传输失败!');

                }
            });
        });

    });




</script>
</body>
</html>


